const arr = [1, 2, 3]

Array.prototype.forEach = function (cb) {
  for (let i = 0; i < this.length; i++) {
    cb.call(this, this[i], i, arr)
  }
}

arr.forEach((item) => {
  console.log(item)
})

export = {}
